﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class game_manager<T> : UnitySingleton<T> where T:Component
{
    private Rigidbody body;
	// Use this for initialization
	public new virtual void Awake () {
        base.Awake();
        body = this.gameObject.AddComponent<Rigidbody>();

        gameObject.AddComponent<UIMgr>();

#if RELEASE_BUILD
#else
        gameObject.AddComponent<ShowFPS>();
        if(Application.platform==RuntimePlatform.Android||
            Application.platform == RuntimePlatform.IPhonePlayer)
            gameObject.AddComponent<DebugMgr>();
#endif

        gameObject.AddComponent<sound_manager>();
        sound_manager.Instance.Init();
	}
	
	// Update is called once per frame
	void Update () {
        
    }
}
